//
// Created by LONG on 2020/10/17.
//

#include "../include/o5gConv.h"

void ogs_uint64_to_buffer(uint64_t num, int size, void *buffer)
{
    int i;
    uint8_t *buffer_p = buffer;
    for (i = 0; i < size; i++)
    {
        buffer_p[i] = (num >> ((size-1-i) * 8)) & 0xff;
    }
}
